// WITH_RUNTIME

fun test(list: List<Int>): List<Int> {
    return list
        .reversed()
        .<caret>map { it + 1 }
        .map { it + 1 }
        .dropLast(1)
        .takeLast(2)
}